<template>
  <basic-container>
    <avue-crud v-bind="bindVal"
               v-on="onEvent"
               :page.sync="page"
               v-permission="{addBtn: 'POST_ADD',editBtn: 'POST_UPDATE',delBtn: 'POST_DELETE',viewBtn: 'POST_DETAIL'}"
               v-model="form">

      <template slot="menuLeft">
        <el-button type="danger" v-permission="'POST_DELETE'" icon="el-icon-delete" size="small" @click.stop="deletes()">批量删除</el-button>
      </template>

      <template slot="userNum" slot-scope="scope">
        <el-tag>{{scope.row.userNum}}人</el-tag>
      </template>

      <template slot="type" slot-scope="scope">
        <el-tag>{{scope.row.params.type}}</el-tag>
      </template>

      <template slot="status" slot-scope="scope">
        <el-tag>{{scope.row.params.status}}</el-tag>
      </template>
    </avue-crud>
  </basic-container>
</template>

<script>
export default window.$crudCommon({
  data () {
    return {
    }
  },
  created () {
  },
  methods: {
  }
}, {
  name: '/system/post',
  data: 'list'
})
</script>

<style lang="scss" scoped>
</style>